import javafx.concurrent.Task;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.*;

/**
 * @author sjw
 * @className a
 * @date 2021/6/22 18:55
 * @description: TODO
 */
public class a {
    public static void main(String[] args) {
        System.out.println(CallRecordDetailTypeEnum.selector(null));
        Map map=new HashMap<String,String>();
        map.put("1","1");
        System.out.println(map.get(null));



        String  a="0315-3663087";
        System.out.println(a.replaceAll("-",""));
        ExecutorService executor = Executors.newFixedThreadPool(4);
        FutureTask<String> task=new FutureTask<>(new Callable<String>() {
            @Override
            public String call() throws Exception {
                Thread.sleep(1000);
                return "123";
            }
        });

        new Thread(task).start();
        try {
            String s= task.get(900, TimeUnit.MILLISECONDS);
            System.out.println(s);
        } catch (InterruptedException e) {
            e.printStackTrace();
        } catch (ExecutionException e) {
            e.printStackTrace();
        } catch (TimeoutException e) {
            System.out.println("TimeoutException");
            //e.printStackTrace();
        }


    }

}
